package com._5704.website.exception;

import lombok.Getter;

public class WebsiteException extends RuntimeException{
    @Getter
    private WebsiteExceptionEnum websiteExceptionEnum;
    public WebsiteException(){
        super();
    }
    public WebsiteException(WebsiteExceptionEnum websiteExceptionEnum){
        super(websiteExceptionEnum.getMsg());
        this.websiteExceptionEnum = websiteExceptionEnum;
    }

    public WebsiteException(WebsiteExceptionEnum websiteExceptionEnum, String e) {
        super(e);
        this.websiteExceptionEnum = websiteExceptionEnum;
    }
}
